#include "MutexEncapsulation.h"

MutexEncapsulation::MutexEncapsulation(){
    pthread_mutex_init(&this->mutex,NULL);
}

MutexEncapsulation::~MutexEncapsulation(){
    pthread_mutex_destroy(&this->mutex);
}

void MutexEncapsulation::lock(){
    pthread_mutex_lock(&this->mutex);
}

void MutexEncapsulation::unlock(){
    pthread_mutex_unlock(&this->mutex);
}

